package com.aaa.doctor.controller.api;

import com.aaa.doctor.service.PatientFileService;
import com.aaa.entity.PatientFile;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/doctor/api/patientFile")
public class ApiPatientFileController {

    @Autowired
    private PatientFileService patientFileService;

    /**
     * 查询档案信息
     * @param patientId
     * @return
     */
    @GetMapping("/getInfoByPatientId/{patientId}")
    public Result<PatientFile> getInfoByPatientId(@PathVariable String patientId){
        return patientFileService.getInfoByPatientId(patientId);
    }
}
